<template>
  <view class="container">
    <view class="header_txt">
      <view class="back"
            @click="backHandler">
        <image src="/static/img/back3.png"></image>
      </view>
      <view class="title"> 模考刷题 </view>
    </view>
    <view class="content">
      <view class="tabber_box flexs1">
        <view class="tabber_item"
              @click='clickbtn(1)'
              :class="{'chooseactive':typeindex==1}">
          <view>站内消息 </view>
          <view class="title_line"
                v-show="typeindex==1"></view>
        </view>
        <view class="tabber_item"
              @click='clickbtn(2)'
              :class="{'chooseactive':typeindex==2}">
          <view>我的点赞 </view>
          <view class="title_line"
                v-show="typeindex==2"></view>
        </view>
        <view class="tabber_item"
              @click='clickbtn(3)'
              :class="{'chooseactive':typeindex==3}">
          <view>我的资讯 </view>
          <view class="title_line"
                v-show="typeindex==3"></view>
        </view>
        <view class="tabber_item"
              @click='clickbtn(4)'
              :class="{'chooseactive':typeindex==4}">
          <view>名企评价 </view>
          <view class="title_line"
                v-show="typeindex==4"></view>
        </view>
        <view class="tabber_item"
              @click='clickbtn(5)'
              :class="{'chooseactive':typeindex==5}">
          <view>课程评价 </view>
          <view class="title_line"
                v-show="typeindex==5"></view>
        </view>
      </view>
      <view class="list_box">
        <!-- 站内消息 -->
        <block v-if="typeindex==1">
          <view class="station_item"
                v-for="(item,index) in msgInfo"
                :key="index"
                v-show="msgInfo.length!=0">
            <view class="station_top">
              <view class="station_left">
                <image src="../../static/image/znxx_img.png"
                       mode=""></image>
                <view class="station_left_title">{{item.title}}</view>
              </view>
              <view class="station_right">{{item.createtime}}</view>
            </view>
            <view class="static_con"
                  v-html="item.content"></view>
          </view>
          <!-- 没有消息 -->
          <view class="none_msg"
                v-show="msgInfo.length==0">
            <image src="../../static/image/zcht_img_k@2x.png"
                   mode=""></image>
            <view class="none_title">暂无信息</view>
          </view>
        </block>
        <!-- 我的点赞 -->
        <block v-if="typeindex==2">
          <view class="zan_item"
                v-for="(item,index) in ZanInfo"
                :key="index">
            <view class="zan_left">
              <image class="zan_left_image"
                     :src="urls+item.company.image"
                     mode="aspectFit"></image>
              <view class="zan_center">
                <view class="zan_name">{{item.company.name}}</view>
                <view class="zan_time">点赞时间：{{item.createtime}}</view>
              </view>
            </view>
            <view class="zan_right">
              <image src="../../static/image/ly_ico_sc@2x.png"
                     mode=""
                     @click="DelZanInfo(item.c_id)"></image>
            </view>
          </view>
          <view class="none_msg"
                v-show="ZanInfo.length==0">
            <image src="../../static/image/zcht_img_k@2x.png"
                   mode=""></image>
            <view class="none_title">暂无信息</view>
          </view>
        </block>
        <!-- 我的咨询 -->
        <block v-if="typeindex==3">
          <view class="news_tabber_box">
            <view class="news_tabber"
                  @click='clickNews(1)'
                  :class="{'newsctive':newsindex==1}">
              已回复
            </view>
            <view class="news_tabber"
                  @click='clickNews(2)'
                  :class="{'newsctive':newsindex==2}">
              未回复
            </view>
          </view>
          <view class="news_item"
                v-show="newsindex==1"
                v-for="(item,index) in YNewInfo"
                :key="index+'n'">
            <view class="news_title">
              <view class="news_title_left">
                {{item.title}}
              </view>
              <view class="news_title_right">
                <view class="news_title_status">已回复</view>
                <view class="news_title_time">{{item.createtime}}</view>
              </view>
            </view>
            <view class="news_content">{{item.content}}</view>
            <view class="news_bottom">
              <view class="news_user">
                <image :src="urls+item.comment[0].user.avatar"
                       mode=""></image>
                <view class="news_user_name">{{item.comment[0].user.nickname}}</view>
              </view>
              <view class="news_content">{{item.comment[0].comment}}</view>
            </view>
          </view>
          <view class="none_msg"
                v-show="YNewInfo.length==0&&newsindex==1">
            <image src="../../static/image/zcht_img_k@2x.png"
                   mode=""></image>
            <view class="none_title">暂无信息</view>
          </view>
          <view class="news_item"
                v-show="newsindex==2"
                v-for="(item,index) in WNewInfo"
                :key="index+'c'">
            <view class="news_title">
              <view class="news_title_left">
                {{item.title}}
              </view>
              <view class="news_title_right">
                <view class="news_title_status">未回复</view>
              </view>
            </view>
            <view class="news_content">{{item.content}}</view>
          </view>
          <view class="none_msg"
                v-show="WNewInfo.length==0&&newsindex==2">
            <image src="../../static/image/zcht_img_k@2x.png"
                   mode=""></image>
            <view class="none_title">暂无信息</view>
          </view>
        </block>
        <!-- 名企评价 -->
        <block v-if="typeindex==4">
          <view class="news_tabber_box">
            <view class="news_tabber"
                  @click='clickEvaluate(1)'
                  :class="{'newsctive':evindex==1}">
              已评价
            </view>
            <view class="news_tabber"
                  @click='clickEvaluate(2)'
                  :class="{'newsctive':evindex==2}">
              未评价
            </view>
          </view>
          <!-- 已评价 -->
          <view class="news_item"
                v-show="evindex==1"
                v-for="(item,index) in ComInfo"
                :key="index+'s'">
            <view class="news_title1">
              <view class="news_title_left1">
                <image class="ev_avatar"
                       :src="urls+item.company.image"
                       mode=""></image>
                <view class="ev_title">{{item.company.name}}</view>
              </view>
              <view class="news_title_right">
                <view class="news_title_status">已评价</view>
                <view class="news_title_time">{{item.createtime}}</view>
              </view>
            </view>
            <view class="news_bottom1">
              <view class="news_user1">
                <image :src="urls+item.user.avatar"
                       mode=""></image>
                <view class="ev_user_box">
                  <view class="news_user_name">{{item.user.nickname}}</view>
                  <view class="ev_time">{{item.createtime}}</view>
                </view>
              </view>
              <view class="ev_start_box">
                <image src="../../static/image/mqfx_ico_pj__nor@2x.png"
                       mode=""
                       v-for="(sitem,sindex) in item.score"
                       :key="sindex+'a'"></image>
                <image src="../../static/image/ico_img_str_nor@2x.png"
                       mode=""
                       v-for="(sitem,sindex) in 5-item.score"
                       :key="sindex+'c'"></image>
              </view>
              <view class="news_content1">{{item.evaluate}}</view>
            </view>
          </view>
          <view class="none_msg"
                v-show="ComInfo.length==0&&evindex==1">
            <image src="../../static/image/zcht_img_k@2x.png"
                   mode=""></image>
            <view class="none_title">暂无信息</view>
          </view>
          <!-- 未评价 -->
          <view class="news_item"
                v-show="evindex==2"
                v-for="(item,index) in WComInfo"
                :key="index+'b'">
            <view class="news_title1">
              <view class="news_title_left1">
                <image class="ev_avatar"
                       :src="urls+item.company.image"
                       mode=""></image>
                <view class="ev_title">{{item.company.name}}</view>
              </view>
              <view class="news_title_right">
                <view class="news_title_status news_top">未评价</view>
                <!-- <view class="news_title_time">2020-11-01</view> -->
              </view>
            </view>
            <view class="news_bottom1">
              <view class="ev_btn_box">
                <view class="ev_btn"
                      @click="showModal1($event,item.c_id)"
                      data-target="Modal1">立即评价</view>
              </view>
            </view>
          </view>
          <view class="none_msg"
                v-show="WComInfo.length==0&&evindex==2">
            <image src="../../static/image/zcht_img_k@2x.png"
                   mode=""></image>
            <view class="none_title">暂无信息</view>
          </view>
        </block>
        <!-- 课程评价 -->
        <block v-if="typeindex==5">
          <view class="news_tabber_box">
            <view class="news_tabber"
                  @click='clickCourse(1)'
                  :class="{'newsctive':Courseindex==1}">
              已评价
            </view>
            <view class="news_tabber"
                  @click='clickCourse(2)'
                  :class="{'newsctive':Courseindex==2}">
              未评价
            </view>
          </view>
          <block v-if="Courseindex==1">
            <view class="course_item"
                  v-for="(item,index) in YCourseList"
                  :key="index">
              <view class="course_top_box">
                <view class="course_top_l">
                  <!-- :style="{backgroundImage:'url('+urls+item.curriculum.image+')'}" -->
                  <image :src="urls+item.curriculum.image"
                         mode=""></image>
                  <!-- <view class="course_class">笔试</view> -->
                  <view class="course_class"
                        v-show="item.curriculum.type==1">笔试</view>
                  <view class="course_class"
                        v-show="item.curriculum.type==2">面试</view>
                </view>
                <view class="course_top_r">
                  {{item.curriculum.name}}
                </view>
              </view>
              <view class="news_bottom1">
                <view class="news_user1">
                  <image :src="urls+item.user.avatar"
                         mode=""></image>
                  <view class="ev_user_box">
                    <view class="news_user_name">{{item.user.nickname}}</view>
                    <view class="ev_time">{{item.createtime}}</view>
                  </view>
                </view>
                <view class="course_start_box">
                  <block v-if="item.level==2">
                    <image src="../../static/image/kcxq_ico_zp@2x.png"
                           mode=""></image>
                    <view class="course_ev">中评</view>
                  </block>
                  <block v-if="item.level==1">
                    <image src="../../static/image/kcxq_ico_cp@2x.png"
                           mode=""></image>
                    <view class="course_ev">差评</view>
                  </block>
                  <block v-if="item.level==3">
                    <image src="../../static/image/kcxq_ico_hp@2x.png"
                           mode=""></image>
                    <view class="course_ev">好评</view>
                  </block>
                </view>
                <view class="news_content1">{{item.evaluate}}</view>
              </view>
            </view>
            <view class="none_msg"
                  v-show="YCourseList.length==0">
              <image src="../../static/image/zcht_img_k@2x.png"
                     mode=""></image>
              <view class="none_title">暂无信息</view>
            </view>
          </block>
          <block v-if="Courseindex==2">
            <view class="course_item"
                  v-for="(item,index) in WCourseList"
                  :key="index">
              <view class="course_top_box">
                <view class="course_top_l">
                  <!-- :style="{backgroundImage:'url('+urls+item.curriculum.image+')'}" -->
                  <image :src="urls+item.curriculum.image"
                         mode=""></image>
                  <view class="course_class"
                        v-show="item.curriculum.type==1">笔试</view>
                  <view class="course_class"
                        v-show="item.curriculum.type==2">面试</view>
                </view>
                <view class="course_top_r">
                  {{item.curriculum.name}}
                </view>
              </view>
              <view class="news_bottom1">
                <view class="ev_btn_box">
                  <view class="ev_btn"
                        @click="showModal($event,item.c_id)"
                        data-target="Modal">立即评价</view>
                </view>
              </view>
            </view>
            <view class="none_msg"
                  v-show="WCourseList.length==0">
              <image src="../../static/image/zcht_img_k@2x.png"
                     mode=""></image>
              <view class="none_title">暂无信息</view>
            </view>
          </block>
        </block>
      </view>
      <!-- 名企评价弹窗 -->
      <view class="cu-modal"
            :class="modalName1=='Modal1'?'show':''">
        <view class="cu-dialog">
          <view class="cu_title">
            <view></view>
            <view class="text-bold cu-item-title1">名企评价</view>
            <view class="action1">
            </view>
          </view>
          <view class="padding_xl">
            <view class="cu_start_box">
              <!-- <image src="../../static/image/mqfx_ico_pj__nor@2x.png" mode="" v-for="(item,index) in 4" :key="index"></image>
						<image src="../../static/image/ico_img_str_nor@2x.png" mode=""  ></image> -->
              <uni-rate :size="18"
                        :value="0"
                        @change="onChange" />
            </view>
            <view class="cu_text_area">
              <textarea value=""
                        placeholder="请输入对该企业的评价"
                        class="text_area_class"
                        placeholder-class="input_class"
                        v-model="comment" />
            </view>
          </view>
          <view class="button">
            <view class="cu_btn"
                  @click="SubmitCom">确认提交</view>
          </view>
        </view>
        <image class="cu_close"
               src="../../static/image/xx_tc_close.png"
               mode=""
               @click="hideModal1"></image>
      </view>
      <!-- 课程评价弹窗 -->
      <view class="cu-modal"
            :class="modalName=='Modal'?'show':''">
        <view class="cu-dialog">
          <view class="cu_title">
            <view></view>
            <view class="text-bold cu-item-title1">课程评价</view>
            <view class="action1">
            </view>
          </view>
          <view class="padding_xl">
            <view class="cu_start_box1">
              <view class="cu_pjsel_box"
                    :class="{'pjsel_sel':seltype==3}"
                    @click="chooseType(3)">
                <image class="pj_img"
                       src="../../static/image/kcxq_ico_hp@2x.png"
                       mode=""></image>
                <view class="pj_text">好评</view>
              </view>
              <view class="cu_pjsel_box"
                    :class="{'pjsel_sel':seltype==2}"
                    @click="chooseType(2)">
                <image class="pj_img"
                       src="../../static/image/kcxq_ico_zp@2x.png"
                       mode=""></image>
                <view class="pj_text">中评</view>
              </view>
              <view class="cu_pjsel_box"
                    :class="{'pjsel_sel':seltype==1}"
                    @click="chooseType(1)">
                <image class="pj_img"
                       src="../../static/image/kcxq_ico_cp@2x.png"
                       mode=""></image>
                <view class="pj_text">差评</view>
              </view>
            </view>
            <view class="cu_text_area">
              <textarea value=""
                        placeholder="请输入课程评价"
                        class="text_area_class"
                        placeholder-class="input_class"
                        v-model="coursecon" />
            </view>
          </view>
          <view class="button">
            <view class="cu_btn"
                  @click="AddCourse">确认提交</view>
          </view>
        </view>
        <image class="cu_close"
               src="../../static/image/xx_tc_close.png"
               mode=""
               @click="hideModal"></image>
      </view>
    </view>
  </view>

</template>

<script>
export default {
  data() {
    return {
      typeindex: 1,
      newsindex: 1,
      evindex: 1,
      Courseindex: 1,
      modalName1: null,
      product_star: '',
      modalName: null,
      seltype: 3,
      msgInfo: [], //站内消息
      ZanInfo: [], //我的点赞
      page: 1,
      limit: 10,
      urls: this.$serverIp,
      ComInfo: [],
      YCourseList: [],
      WCourseList: [],
      WComInfo: [],
      coursecon: '',
      cid: '', //课程id
      mid: '',
      comment: '',
      YNewInfo: [],
      WNewInfo: []
    }
  },
  onLoad() {
    this.getMsgInfo()
    // this.getZanInfo()
    // this._getsysteminfo()
  },
  methods: {
    backHandler() {
      uni.navigateBack({
        delta: 1
      })
    },
    async _getsysteminfo() {
      //获取系统消息(站内消息)
      const { data } = await this.$http.post('/home/systemInfo', { page: this.page, limit: this.limit })
      console.log(data)
      if (data.code == 1) {
        if (this.page == 1) {
          this.datastackarray = data.data.data
        } else {
          this.datastackarray = this.datastackarray.concat(data.data.data)
        }
      } else {
        uni.showToast({
          title: data.msg,
          icon: 'none',
          duration: 2000
        })
      }
    },
    clickbtn(val) {
      this.typeindex = val
      if (this.typeindex == 2) {
        this.getZanInfo()
      } else if (this.newsindex == 3) {
        this.getZiXunList()
      } else if (this.typeindex == 4) {
        this.getCompanyList()
      } else if (this.typeindex == 5) {
        this.getCourseList()
      }
    },
    clickNews(val) {
      this.newsindex = val
      this.getZiXunList()
    },
    clickEvaluate(val) {
      this.evindex = val
      this.getCompanyList()
    },
    clickCourse(val) {
      this.Courseindex = val
      this.getCourseList()
    },
    showModal1(e, id) {
      this.modalName1 = e.currentTarget.dataset.target
      this.mid = id
    },
    hideModal1(e) {
      this.modalName1 = null
    },
    showModal(e, id) {
      this.modalName = e.currentTarget.dataset.target
      this.cid = id
    },
    hideModal(e) {
      this.modalName = null
    },
    // 星星
    onChange(e) {
      this.product_star = JSON.parse(JSON.stringify(e)).value
      console.log(this.product_star)
    },
    // 课程评价
    chooseType(val) {
      this.seltype = val
    },
    // 获取站内消息
    async getMsgInfo() {
      const { data } = await this.$http.post('/home/systemInfo')
      console.log(data)
      if (data.code == 1) {
        this.msgInfo = data.data.data
      }
    },
    // 我的点赞
    async getZanInfo() {
      const { data } = await this.$http.post('/company/my_like')
      console.log(data)
      if (data.code == 1) {
        this.ZanInfo = data.data.data
      }
    },
    // 删除点赞
    async DelZanInfo(id) {
      const { data } = await this.$http.post('/company/cancel_like', { c_id: id })
      console.log(data)
      if (data.code == 1) {
        this.$api.msg(data.msg)
        this.getZanInfo()
      }
    },
    // 我的咨询列表
    async getZiXunList() {
      if (this.newsindex == 1) {
        const { data } = await this.$http.post('/Curriculum/my_question')
        console.log(data)
        if (data.code == 1) {
          this.YNewInfo = data.data.data.data
        }
      } else {
        const { data } = await this.$http.post('/Curriculum/my_question2')
        console.log(data)
        if (data.code == 1) {
          this.WNewInfo = data.data.data
        }
      }
    },
    // 名企评价列表
    async getCompanyList() {
      if (this.evindex == 1) {
        const { data } = await this.$http.post('/company/my_evaluate')
        console.log(data)
        if (data.code == 1) {
          this.ComInfo = data.data
        }
      } else {
        const { data } = await this.$http.post('/company/my_evaluate2')
        console.log(data)
        if (data.code == 1) {
          this.WComInfo = data.data.data
        }
      }
    },
    // 提交评价
    async SubmitCom() {
      const { data } = await this.$http.post('/company/evaluate', { c_id: this.mid, score: this.product_star, evaluate: this.comment })
      console.log(data)
      if (data.code == 1) {
        this.getCompanyList()
      }
      uni.showToast({
        title: data.msg,
        icon: 'none',
        duration: 2000
      })
      this.hideModal1()
    },
    // 课程评价列表
    async getCourseList() {
      if (this.Courseindex == 1) {
        const { data } = await this.$http.post('/Curriculum/my_evaluate')
        console.log(data)
        if (data.code == 1) {
          this.YCourseList = data.data
        }
      } else {
        const { data } = await this.$http.post('/Curriculum/my_evaluate2')
        console.log(data)
        if (data.code == 1) {
          this.WCourseList = data.data.data
        }
      }
    },
    // 课程评价
    async AddCourse() {
      const { data } = await this.$http.post('/Curriculum/evaluate', { c_id: this.cid, level: this.seltype, evaluate: this.coursecon })
      console.log(data)
      if (data.code == 1) {
        // 重新获取评价列表
        this.getCourseList()
        this.coursecon = ''
        this.hideModal()
      } else {
        uni.showToast({
          title: data.msg,
          icon: 'none',
          duration: 2000
        })
      }
    }
  }
}
</script>

<style lang="scss">
.cu-modal {
  width: 750rpx;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1110;
  opacity: 0;
  outline: 0;
  text-align: center;
  -ms-transform: scale(1.185);
  -webkit-transform: scale(1.185);
  transform: scale(1.185);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
  background: rgba(0, 0, 0, 0.6);
  -webkit-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
  pointer-events: none;
}

.cu-modal.show {
  height: 100vh;
  padding-top: 70%;
  padding-left: 12%;
  opacity: 1;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -ms-transform: scale(1);
  -webkit-transform: scale(1);
  transform: scale(1);
  overflow-x: hidden;
  overflow-y: auto;
  pointer-events: auto;
}
.flexs1 {
  display: flex;
  justify-content: space-evenly;
  text-align: center;
  box-sizing: border-box;
}
/* 头部区域 */
.header_txt {
  width: 750rpx;
  overflow: hidden;
  height: 88rpx;
  background-color: #fff;

  .back {
    position: absolute;
    top: 14rpx;
    left: 14rpx;
    width: 60rpx;
    height: 60rpx;
    display: flex;
    justify-content: center;
    align-items: center;
    image {
      width: 48rpx;
      height: 48rpx;
    }
  }

  /* // .right {
  //   position: absolute;
  //   top: 14rpx;
  //   right: 14rpx;
  //   width: 60rpx;
  //   height: 60rpx;
  //   display: flex;
  //   justify-content: center;
  //   align-items: center;
  // } */

  .title {
    width: 750rpx;
    text-align: center;
    height: 88rpx;
    line-height: 88rpx;
    font-size: 32rpx;
    font-weight: bold;
  }
}
.content {
  width: 100vw;
  height: 100vh;
  overflow: auto;
}

.tabber_box {
  width: 100%;
  height: 80rpx;
  margin: auto;
  /* padding: 0 30rpx; */
  background-color: #ffffff;
  overflow-x: scroll;
  padding-left: 20rpx;
  position: fixed;
  top: 85rpx;
  /* #ifdef APP-PLUS */
  // top: 0;
  /* #endif */
  z-index: 10;
  padding-left: 180rpx;
  box-sizing: border-box;
}

.tabber_item {
  width: 180rpx;
  font-size: 30rpx;
  font-family: PingFang SC;
  font-weight: 500;
  color: #666666;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex-shrink: 0;
}

.chooseactive {
  width: 180rpx;
  font-size: 32rpx;
  font-family: PingFang SC;
  font-weight: bold;
  color: #333333;
}

.title_line {
  width: 60rpx;
  height: 4rpx;
  background: #ffdd47;
  border-radius: 2rpx;
  margin-top: 5rpx;
}

.list_box {
  width: 100%;
  height: auto;
  margin-top: 100rpx;
  padding-bottom: 30rpx;
}

/* 站内消息 */
.station_item {
  width: 100%;
  height: auto;
  background-color: #ffffff;
  margin-top: 20rpx;
  padding-bottom: 20rpx;
}

.station_top {
  width: 100%;
  height: 100rpx;
  padding: 0 30rpx;
  border-bottom: 1rpx solid #f5f5f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.station_left image {
  width: 60rpx;
  height: 60rpx;
}

.station_left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.station_left_title {
  font-size: 32rpx;
  font-family: PingFang SC;
  font-weight: 500;
  color: #333333;
  margin-left: 30rpx;
}

.station_right {
  font-size: 22rpx;
  font-family: PingFang SC;
  font-weight: 500;
  color: #999999;
}

.static_con {
  width: 100%;
  height: auto;
  padding: 20rpx 30rpx;
  font-size: 28rpx;
  font-family: PingFang SC;
  font-weight: 500;
  color: #333333;
}
/* 暂无消息 */
.none_msg {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 300rpx;
}

.none_msg image {
  width: 354rpx;
  height: 253rpx;
}

.none_title {
  font-size: 26rpx;
  font-family: PingFang SC;
  font-weight: 500;
  color: #666666;
  margin-top: 40rpx;
}
/* 我的点赞 */
.zan_item {
  width: 100%;
  height: 190rpx;
  background-color: #ffffff;
  padding: 0 30rpx;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20rpx;
}
.zan_left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.zan_left_image {
  width: 196rpx;
  height: 130rpx;
  background: #f7f5f6;
  border-radius: 10rpx;
}
.zan_center {
  margin-left: 20rpx;
  height: 130rpx;
}
.zan_name {
  font-size: 28rpx;
  font-family: PingFang SC;
  font-weight: bold;
  color: #333333;
}
.zan_time {
  font-size: 24rpx;
  font-family: PingFang SC;
  font-weight: 500;
  color: #999999;
  margin-top: 20rpx;
}
.zan_right {
  height: 130rpx;
}
.zan_right image {
  width: 26rpx;
  height: 26rpx;
}
/* 我的咨询 */
.news_tabber_box {
  width: 92%;
  height: 56rpx;
  margin: 0 auto;
  background: #ffffff;
  border: 1rpx solid #ffdd47;
  border-radius: 6rpx;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.news_tabber {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.newsctive {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffdd47;
}
.news_item {
  width: 100%;
  height: auto;
  padding: 0 30rpx;
  background-color: #ffffff;
  margin-top: 30rpx;
  /* padding-bottom: 10rpx; */
}
.news_title {
  width: 100%;
  height: 80rpx;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.news_title_left {
  font-size: 34rpx;
  font-family: PingFang SC;
  font-weight: bold;
  color: #333333;
}
.news_title_right {
  margin-top: 10rpx;
  text-align: right;
}
.news_title_status {
  font-size: 24rpx;
  font-family: PingFang SC;
  font-weight: 500;
  color: #ff3b30;
}
.news_title_time {
  font-size: 24rpx;
  font-family: PingFang SC;
  font-weight: 500;
  color: #999999;
}
.news_content {
  padding-bottom: 20rpx;
  padding-top: 10rpx;
  border-bottom: 1rpx solid #f5f5f5;
}
.news_bottom {
  width: 100%;
  height: auto;
  padding-top: 20rpx;
}
.news_user {
  width: 100%;
  height: 70rpx;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-bottom: 10rpx;
}
.news_user image {
  width: 70rpx;
  height: 70rpx;
  border-radius: 50%;
}
.news_user_name {
  font-size: 30rpx;
  font-family: PingFang SC;
  font-weight: 500;
  color: #333333;
  margin-left: 20rpx;
}
/* 名企评价 */
.news_title1 {
  width: 100%;
  height: 130rpx;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1rpx solid #e5e5e5;
}
.ev_avatar {
  width: 70rpx;
  height: 70rpx;
  border-radius: 50%;
}
.news_title_left1 {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
}
.ev_title {
  font-size: 28rpx;
  font-family: PingFang SC;
  font-weight: bold;
  color: #333333;
  margin-left: 20rpx;
}
.news_bottom {
  width: 100%;
  height: auto;
  /* padding-top: 15rpx; */
}
.news_user1 {
  width: 100%;
  height: 100rpx;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.news_user1 image {
  width: 70rpx;
  height: 70rpx;
  border-radius: 50%;
}
.ev_time {
  font-size: 24rpx;
  font-family: PingFang SC;
  font-weight: 500;
  color: #999999;
  margin-left: 20rpx;
}
.ev_start_box {
  width: 100%;
  height: 50rpx;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.ev_start_box image {
  width: 28rpx;
  height: 26rpx;
  margin-right: 12rpx;
}
.no_border {
  border: none !important;
}
.news_content1 {
  padding-bottom: 30rpx;
  padding-top: 10rpx;
}
.news_top {
  margin-bottom: 50rpx;
}
.ev_btn_box {
  width: 100%;
  height: 100rpx;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.ev_btn {
  width: 120rpx;
  height: 40rpx;
  background: #ffdd47;
  border-radius: 4rpx;
  font-size: 24rpx;
  font-family: PingFang SC;
  font-weight: 500;
  color: #333333;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* 课程评价 */
.course_item {
  width: 100%;
  height: auto;
  background-color: #ffffff;
  padding: 0 30rpx;
  margin-top: 20rpx;
}
.course_top_box {
  width: 100%;
  height: 190rpx;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-bottom: 1rpx solid #e5e5e5;
}
.course_top_l {
  width: 196rpx;
  height: 130rpx;
  border-radius: 10rpx;
  background-image: url(../../static/image/cai.png);
  background-size: 100% 100%;
}
.course_top_l image {
  width: 196rpx;
  height: 130rpx;
  border-radius: 10rpx;
}
.course_class {
  width: 70rpx;
  height: 30rpx;
  background-image: url(../../static/image/img_bs_bg@2x.png);
  background-size: 100% 100%;
  font-size: 22rpx;
  font-weight: bold;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  top: -136rpx;
  left: 0rpx;
  /* z-index: 100; */
}
.course_top_r {
  width: 70%;
  height: 130rpx;
  font-size: 28rpx;
  font-family: PingFang SC;
  font-weight: bold;
  color: #333333;
  margin-left: 25rpx;
}
.course_start_box {
  width: 100%;
  height: 50rpx;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.course_start_box image {
  width: 20rpx;
  height: 26rpx;
  margin-right: 11rpx;
}
.course_ev {
  font-size: 22rpx;
  font-family: PingFang SC;
  font-weight: 500;
  color: #666666;
}
/* 企业评价弹窗 */
.cu-dialog {
  width: 570rpx;
  height: auto;
  background: #ffffff;
  border-radius: 10rpx;
}
.cu-item-title {
  font-size: 32rpx;
}

.cu-item-title1 {
  width: 100%;
  font-size: 32rpx;
  height: 100rpx;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cu_title {
  width: 100%;
  height: 80rpx;
  padding: 0rpx 20rpx;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f5;
}
.button {
  width: 100%;
  height: 100rpx;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cu_btn {
  width: 300rpx;
  height: 60rpx;
  background: #ffdd47;
  border-radius: 6rpx;
  display: flex;
  justify-content: center;
  align-items: center;
}
.padding_xl {
  width: 100%;
  height: 245rpx;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.cu_start_box {
  width: 100%;
  height: 90rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cu_start_box image {
  width: 39rpx;
  height: 36rpx;
  margin-right: 10rpx;
}
.cu_text_area {
  width: 509rpx;
  height: 140rpx;
  background: #f2f2f2;
  padding: 20rpx 20rpx;
}
.text_area_class {
  width: 100%;
  height: 100%;
  text-align: left;
  font-size: 26rpx;
}
.input_class {
  font-size: 26rpx;
  font-family: PingFang SC;
  font-weight: 500;
  color: #999999;
}
.cu_close {
  width: 60rpx;
  height: 60rpx;
  position: absolute;
  bottom: 25%;
  right: 45%;
}
/* 课程评价 */
.cu_start_box1 {
  width: 100%;
  height: 90rpx;
  padding: 0 60rpx;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cu_pjsel_box {
  width: 110rpx;
  height: 44rpx;
  border: 1rpx solid #cccccc;
  border-radius: 6rpx;
  display: flex;
  justify-content: center;
  align-items: center;
}
.pjsel_sel {
  width: 110rpx;
  height: 44rpx;
  background: #fffae6;
  border: 1rpx solid #ffdd47;
  border-radius: 6rpx;
  display: flex;
  justify-content: center;
  align-items: center;
}
.pj_img {
  width: 20rpx;
  height: 26rpx;
  margin-right: 10rpx;
}
.pj_text {
  font-size: 26rpx;
  font-family: PingFang SC;
  font-weight: 500;
  color: #333333;
}
</style>
